package org.eenie.commonlib.ui.arch.fragment;


import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import com.blankj.utilcode.util.LogUtils;
import com.eenie.common.base.BaseFragment;
import com.eenie.common.views.AppBar;

import org.eenie.commonlib.R;

public class TestLazyFragment extends BaseFragment {
    AppBar mAppBar;
    Button mBtnStartFragment;
    private String mTitle = "";


    public static TestLazyFragment newInstance(String title) {
        Bundle bundle = new Bundle();
        bundle.putString("title", title);
        TestLazyFragment fragment = new TestLazyFragment();
        fragment.setArguments(bundle);
        return fragment;
    }

    @Override
    public int initContentView() {
        return R.layout.fragment_test_lazy;
    }

    @Override
    public void initData(Bundle savedInstanceState) {
        mTitle = getArguments().getString("title");
        LogUtils.e("initData " + mTitle);

    }

    @Override
    public void initUI(View rootView) {
        LogUtils.e("initUI " + mTitle);
        mBtnStartFragment.setText(mTitle);

    }


}
